﻿using Abp.Application.Services.Dto;
using Abp.Domain.Repositories;
using Abp.Extensions;
using Abp.Linq.Extensions;
using Abp.Organizations;
using Abp.Runtime.Caching;
using Abp.UI;
using ARchGL.Platform.Authorization.Users;
using ARchGL.Platform.Electrocar.Application.Dto;
using ARchGL.Platform.Electrocar.Application.Utils;
using ARchGL.Platform.Electrocar.Core;
using ARchGL.Platform.Utils;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;

namespace ARchGL.Platform.Electrocar.Application
{
    /// <summary>
    /// 老项目服务实现（已弃用） 
    /// </summary>
    [Obsolete("新方法请加入 ProjectsAppService ")]
    public class CarModelsAppService : BaseService
    {
        private readonly IRepository<ProjectUsers, Guid> projectUsersRepository;
        private readonly IRepository<OrganizationUnit, long> organizationUnitRepository;
        private readonly IRepository<Projects, Guid> carModelsRepository;
        private readonly IRepository<CarBodys, Guid> carBodysRepository;
        private readonly IRepository<ModelDirectorys, Guid> modelDirectorysRepository;
        private readonly IRepository<ModelPropertys, Guid> modelPropertysRepository;

        private readonly Services.CarModelsAppService carModelService1;
        private readonly UserManager userManager;
        private readonly ICacheManager cacheManager;
        //private readonly HttpContext context;

        public CarModelsAppService(
            IRepository<Projects, Guid> _carModelsRepository, IRepository<CarBodys, Guid> _carBodysRepository,
            IRepository<ProjectUsers, Guid> _projectUsersRepository,
            IRepository<OrganizationUnit, long> _organizationUnitRepository,
            IRepository<ModelDirectorys, Guid> _modelDirectorysRepository, IRepository<ModelPropertys, Guid> _modelPropertysRepository,
            Services.CarModelsAppService _carModelService1,
            UserManager _userManager, ICacheManager _cacheManager
            )
        {
            projectUsersRepository = _projectUsersRepository;
            organizationUnitRepository = _organizationUnitRepository;
            carModelsRepository = _carModelsRepository;
            carBodysRepository = _carBodysRepository;
            modelDirectorysRepository = _modelDirectorysRepository;
            modelPropertysRepository = _modelPropertysRepository;

            carModelService1 = _carModelService1;
            userManager = _userManager;
            cacheManager = _cacheManager;

        }
    }
}
